package cn.b.sky.shop.activiti.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * <strong>Title : DeploymentNode.java<br></strong>
 * <strong>Package : cn.b.sky.shop.activiti.model<br></strong>
 * <strong>Description : </strong>已发布流程的节点信息<br> 
 * <strong>Create on : 2015-11-23 下午1:33:32<br></strong>
 * <p>
 * @author lidapeng<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class DeploymentNode implements Serializable {
  /** 
  * @Fields serialVersionUID : 
  * @creator     :lidapeng
  */
  private static final long serialVersionUID = 9061399969033519874L;

  /** 主键 */
  private Long id;

  /**
   * 租户的概念
   */
  private String tenantId;

  /**
   * 流程定义ID
   * 流程发布的时候复制一套模型的配置给流程定义
   */
  private String deploymentId;

  /**节点标识*/
  private String code;

  /**节点名称*/
  private String name;

  /**节点类型*/
  private String type;

  /**节点表单*/
  private String formKey;

  /**
   * 配置监听器
   */
  private List<FlowNodeEvent> listeners = new ArrayList<FlowNodeEvent>();

  /**
   * 配置用户
   */
  private List<FlowNodeUser> users = new ArrayList<FlowNodeUser>();

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getTenantId() {
    return tenantId;
  }

  public void setTenantId(String tenantId) {
    this.tenantId = tenantId;
  }

  public String getDeploymentId() {
    return deploymentId;
  }

  public void setDeploymentId(String deploymentId) {
    this.deploymentId = deploymentId;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getFormKey() {
    return formKey;
  }

  public void setFormKey(String formKey) {
    this.formKey = formKey;
  }

  public List<FlowNodeEvent> getListeners() {
    return listeners;
  }

  public void setListeners(List<FlowNodeEvent> listeners) {
    this.listeners = listeners;
  }

  public List<FlowNodeUser> getUsers() {
    return users;
  }

  public void setUsers(List<FlowNodeUser> users) {
    this.users = users;
  }
}
